@import url("iconfonts.css");
@import url("font-noodle.css");
/* variables */
/* reset style */
html {
  height: 100%;
  width: 100%;
  font-size: 16px;
}
body {
  position: relative;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  color: rgba(0, 0, 0, 0.87);
  background-color: #f2f2f2;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body,
article,
aside,
footer,
header,
nav,
section,
h1,
h2,
h3,
h4,
h5,
h6,
select,
input,
textarea,
button,
ul,
ol,
dl,
dt,
dd,
li,
table,
legend,
thead,
tbody,
tfoot,
tr,
td,
th,
div,
p,
span,
a {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: helvetica, "Microsoft YaHei", sans-serif;
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
  font-size: .875rem;
}
ul,
ol,
li {
  list-style: none;
}
a {
  text-decoration: none;
  -webkit-touch-callout: none;
  color: rgba(0, 0, 0, 0.87);
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button,
input:focus,
select:focus,
textarea:focus {
  outline: none;
}
/* global style 全局可用样式*/
.valign {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* page style 页面框架*/
article {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #f2f2f2;
}
article > header {
  position: relative;
  height: 2.75rem;
  width: 100%;
  padding: 0 3.5rem;
  z-index: 2;
}
article > header h1 {
  height: 2.75rem;
  line-height: 2.75rem;
  font-size: 1.125rem;
  text-align: center;
  color: #05b9ff;
}
article > header .icon-add {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  font-size: 1.375rem;
}
article > section {
  position: relative;
  flex: 1;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
/*下拉列表*/
.drop-down {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  padding-right: 1.375rem;
}
.drop-down:after {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  content: "\e900";
  font-family: 'icomoon';
  font-size: .875rem;
  transition: all .2s;
}
.drop-down span {
  height: 2.75rem;
  line-height: 2.75rem;
  font-size: .9375rem;
}
.drop-down ul {
  position: absolute;
  top: 100%;
  left: 0;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  display: none;
}
.drop-down ul li {
  height: 2rem;
  line-height: 2rem;
  padding: 0 1rem;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  font-size: .9375rem;
  white-space: nowrap;
  transition: all .2s;
}
.drop-down ul li:active,
.drop-down ul li.active {
  background-color: #05b9ff;
  color: rgba(255, 255, 255, 0.87);
}
.drop-down ul li:last-child {
  border-bottom: none;
}
.drop-down.on:after {
  content: "\e905";
}
.drop-down.on ul {
  display: block;
}
/*统计总数*/
.data {
  position: relative;
  padding: .75rem;
  margin: .5rem 1rem;
  height: 5.5rem;
  background-color: #e5e5e5;
  border-radius: 8px;
  text-align: center;
}
.data .sum {
  font-family: 'noodle';
  color: #05b9ff;
  font-size: 2.25rem;
}
.data .sum .postfix {
  font-family: 'noodle';
  font-size: .9375rem;
  margin-left: .25rem;
}
.data .time {
  font-size: .75rem;
  margin-top: .5rem;
}
.data .icon-button {
  position: absolute;
  top: .75rem;
  right: .75rem;
  color: #05b9ff;
}
.data .icon-button:before {
  font-family: 'icomoon';
  font-size: 1.875rem;
}
.data .icon-button.money:before {
  content: "\e903";
}
.data .icon-button.degree:before {
  content: "\e901";
}
/*图表区*/
.chart-container {
  margin: .5rem 1rem;
}
/*电表列表*/
.ammeter-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 .5rem;
}
.ammeter-list li {
  position: relative;
  flex: 1;
  min-height: 5.5rem;
  padding: 1rem;
  margin: .5rem;
  border-radius: 8px;
  background-color: #e5e5e5;
}
.ammeter-list li.abnormal .sum {
  color: rgba(0, 0, 0, 0.53);
}
.ammeter-list li.abnormal .sum .postfix {
  display: none;
}
.ammeter-list li.abnormal .status {
  background-color: #ff3d01;
  color: rgba(255, 255, 255, 0.87);
}
.ammeter-list .sum {
  font-family: 'noodle';
  color: #05b9ff;
  font-size: 1.5rem;
}
.ammeter-list .sum .postfix {
  font-family: 'noodle';
  font-size: .75rem;
  margin-left: .25rem;
}
.ammeter-list .status {
  position: absolute;
  top: 1rem;
  right: 0;
  font-size: .75rem;
  width: 2.5rem;
  height: 1.25rem;
  line-height: 1.25rem;
  border-top-left-radius: 1.25rem;
  border-bottom-left-radius: 1.25rem;
  text-align: center;
  background-color: #05b9ff;
  color: rgba(255, 255, 255, 0.87);
}
.ammeter-list .location {
  position: relative;
  padding-left: 1.4375rem;
  margin-top: .25rem;
  font-size: .75rem;
  height: 1rem;
  line-height: 1rem;
  overflow: hidden;
}
.ammeter-list .location .icon {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: .9375rem;
}
.ammeter-list .chart {
  margin-top: .25rem;
  height: 1rem;
}
